|
Download - interscript
... --- @# Try to get the hostname. @# Should work on Unix, but don't worry if it fails. @gen_hostname = 'unknown' @try: f = os.popen('hostname','r') gen_hostname = string.strip(f.readline()) f.close() except: print "Couldn't get hostname, probably not Un
interscript.sourceforge.net
|
|